from django.conf.urls.defaults import *
from django.views.generic.simple import direct_to_template
from django.conf import settings
from django.contrib import admin
admin.autodiscover()

# Uncomment the next two lines to enable the admin:    
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    (r'^admin/', include(admin.site.urls)),
    url(r'^$', 'arnagroup.base.views.index', name = 'index'),
    url(r"^site_media/(?P<path>.*)$", "django.views.static.serve", dict(document_root = settings.MEDIA_ROOT, show_indexes = True)),
    url(r'^page/(?P<path_id>\d+)/$', "arnagroup.base.views.page_details", name="top-menu-link"),
    url(r'^page/sub/(?P<path_id>\d+)/$', "arnagroup.base.views.sub_page_details", name="sub-menu-link"),    
    url(r"^iletisim/$", 'arnagroup.communication.views.communication', name = 'communication-view'),
    url(r'^captcha/', include('arnagroup.captcha.urls')),
    url(r'^danisman/', include('arnagroup.danismanlar.urls')),    

    # Example:
    # (r'^arnagroup/', include('arnagroup.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # (r'^admin/', include(admin.site.urls)),
)
